{% extends "base.html" %}

{% block nav %}
{% endblock %}

{% block content %}

  {% if error %}
    <p class="error">Not a valid username/password combination</p>
  {% endif %}
  <p>You must log in to view this page</p>
  <form action='.' method='post' class="login">
	<fieldset>
		<legend>Login</legend>
	
		<ol>
			<li>
				<label for="username">Username<em>*</em></label>
			    <input type="text"
					   name="username"
					   value="{{ username }}"
					   id="username"
					   tabindex="1">
			</li>
			<li>
				<label for="password">Password<em>*</em></label>
		    	<input type="password"
					   name="password"
					   value=""
					   id="password"
					   tabindex="2">
			</li>
		</ol>
		   <input type="submit" value="login" tabindex="3" />
		   <input type="hidden" name="next" value="{{ next }}" />
	</fieldset>
  </form>

{% endblock %}